package com.MovieManageSystem.mapper;

import com.MovieManageSystem.domain.Collection;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CollectionMapper {
    /**
     * 查询收藏列表
     *
     * @param collection 收藏
     * @return 收藏集合
     */
    List<Collection> getCollectList(Collection collection);
    /**
     * 新增收藏
     *
     * @param collection 收藏
     */
    public void insertCollection(Collection collection);

    /**
     * 删除收藏
     *
     * @param cid 收藏主键
     */
    public void deleteCollectionByCid(Long cid);

}
